package com.contract.pojo.input;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * 角色保存入参
 *
 * @author liw
 * @version 1.0
 * @date 2022/6/30 11:15
 */
@Data
public class RegisterSaveInput extends BaseInput implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "用户姓名")
    @NotNull
    private String userName;

    @ApiModelProperty(value = "性别")
    @NotNull
    private String sex;

    @ApiModelProperty(value = "卡号")
    @NotNull
    private String cardNo;

    @ApiModelProperty(value = "民族")
    @NotNull
    private String nation;

    @ApiModelProperty(value = "正面")
    @NotNull
    private String cardFace;

    @ApiModelProperty(value = "背面")
    @NotNull
    private String cardBack;

    @ApiModelProperty(value = "生日")
    @NotNull
    private LocalDate birthday;

    @ApiModelProperty(value = "地址")
    @NotNull
    private String address;
    @ApiModelProperty(value = "有效期开始")
    private LocalDate cardStart;

    @ApiModelProperty(value = "有效期结束")
    @NotNull
    private LocalDate cardEnd;

    @ApiModelProperty(value = "签发机关")
    @NotNull
    private String organization;

    @ApiModelProperty(value = "邮箱")
    @NotNull
    private String email;

    @ApiModelProperty(value = "手机号")
    @NotNull
    private String phone;

    @ApiModelProperty(value = "现住址")
    private String currentAddress;

    @ApiModelProperty(value = "紧急联系人与本人关系")
    @NotNull
    private String contactRelation;

    @ApiModelProperty(value = "紧急联系人姓名")
    @NotNull
    private String contactName;

    @ApiModelProperty(value = "紧急联系人手机号")
    @NotNull
    private String contactPhone;

}
